<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<base href="<%=basePath%>">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<div id="yidengTb">
 	<input class="easyui-textbox" id="yidengPatientName" name="patient.name" label="姓名:" labelposition="left" style="width:250px;">
	<label class="textbox-label textbox-label-left" for="_easyui_textbox_input2" style="text-align: left;width:60px; height: 26px; line-height: 26px;">挂号类型:</label>
    <input id="weidengTodayRegistrationRankClassType" class="easyui-combobox" name="" style="width:150px;" data-options=" 
	      url:'registrationChargeType/selectAll', 
	      method:'get', 
	      valueField:'id', 
	      textField:'typeName', 
	      panelheight:'auto'
     	">
	<label class="textbox-label textbox-label-left" for="_easyui_textbox_input2" style="text-align: left;width:60px; height: 26px; line-height: 26px;">类型:</label>
    <input id="yidengTodayRegistrationType" class="easyui-combobox" name="" style="width:150px;" data-options=" 
	      url:'', 
	      method:'get', 
	      valueField:'id', 
	      textField:'value', 
	      panelheight:'auto',
	      data: [{
				id: '1',
				value: '初诊'
			},{
				id: '2',
				value: '复诊'
			}]
     	">
	<label class="textbox-label textbox-label-left" for="_easyui_textbox_input2" style="text-align: left;width:60px; height: 26px; line-height: 26px;">科室:</label>
    <input id="yidengTodayRegistrationSection" class="easyui-combobox" name="" style="width:150px;" data-options=" 
	      url:'section/selectAll', 
	      method:'get', 
	      valueField:'id', 
	      textField:'name', 
	      panelheight:'auto'
     	">
     	
   	<a id="btn" href="javaScript:void(0)" onclick="registrationSelectCondition()" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">serch</a>
   	<a id="btn" href="javaScript:void(0)" onclick="addSeeDoctorRegister()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">就诊登记</a>

</div>
<table class="easyui-datagrid" id="yidengRegistrationTable" 
		data-options="url:'seeDoctorRegister/selectList',method:'post',fitColumns:true,striped:true,rownumbers:true,singleSelect:true ">
	<thead>
		<tr>
			<th data-options="field:'patient',formatter:patientFormatter" width="100">病人</th>
			<th data-options="field:'registrationChargeType',align:'right',formatter:registrationChargeTypeFormatter" width="100">挂号类型</th>
			<th data-options="field:'type',align:'right',formatter:registrationTypeFormatter" width="100">类型</th>
			<th data-options="field:'section',align:'right',formatter:sectionFormatter"  width="100">科室id</th>
			<th data-options="field:'user',align:'right',formatter:userFormatter" width="100">医生</th>
			<th data-options="field:'stage',align:'right',formatter:stageFormatter" width="100">上午/下午</th>
			<th data-options="field:'registrationMoney',align:'right'" width="100">金额</th>
			<th data-options="field:'registerState',align:'right',formatter:registerStateFormatter" width="100">登记状态</th>
		</tr>
	</thead>
</table>
<script type="text/javascript">
	$(function(){
		$("#yidengRegistrationTable").datagrid({
			pagination:true,
			toolbar:'#yidengTb',
			idField:"id"
		})	
	})
</script>
</body>
</html>